<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>JS自定义对象</title>
</head>
<body>
<script>
    // JS自定义对象
    let Sutdet = {
        name:"张三",
        id:3853805,
        age:23,
        sex:"男",
        learning:function () {
            document.write("学习三小时"+"<br>")
        },
        eat:function () {
            document.write("吃面"+"<br>")
        },
        sleep:function () {
            document.write("睡眠7小时"+"<br>")
        }

    };

    document.write(Sutdet.name+"<br>")
    document.write(Sutdet.age+"<br>")
    document.write(Sutdet.id+"<br>")
    Sutdet.eat()+"<br>"
    Sutdet.learning()+"<br>"
    Sutdet.sleep()+"<br>"


</script>
</body>
</html>